from fastapi import FastAPI
from app.core import config as app_config
from app.api.v1.api import api_router

app = FastAPI(
    title=app_config.settings.app_name,
    version=app_config.settings.app_version
)

app.include_router(api_router, prefix="/api/v1")

@app.get("/")
@app.get("/health")
async def root():
    return {"status": "healthy", "message": "FastAPI K8S Manager is running."}
